package com.learning.security.controller;

import com.learning.security.controller.vo.RoleSaveReqVO;
import com.learning.security.service.AdminRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/role")
public class AdminRoleController {
    @Autowired
    private AdminRoleService adminRoleService;
    @PostMapping("/create")
    public boolean createRole(@RequestBody RoleSaveReqVO reqVO) {
        return adminRoleService.createRole(reqVO);
    }
}
